package com.dapeng.cleardatabackend.model.dto.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author dapeng
 * @description 用户更新密码请求
 * @date 2024/12/21 21:19
 */
@Data
@ApiModel(description = "用户更新密码请求")
public class UserUpdatePasswordRequest implements Serializable {

    private static final long serialVersionUID = -378539961054497255L;

    /**
     * 旧密码
     */
    @ApiModelProperty(value = "旧密码", required = true)
    @NotNull(message = "旧密码不能为空")
    @Size(min = 8, max = 20, message = "旧密码长度需要在8-20位之间")
    private String oldPassword;

    /**
     * 用户密码
     */
    @ApiModelProperty(value = "用户密码", required = true)
    @NotNull(message = "用户密码不能为空")
    @Size(min = 8, max = 20, message = "用户密码长度需要在8-20位之间")
    private String userPassword;

    /**
     * 校验密码
     */
    @ApiModelProperty(value = "校验密码")
    @Size(min = 8, max = 20, message = "校验密码长度需要在8-20位之间")
    private String checkPassword;
}
